[LegacyColorValue = true]; 

{ TSMElliottWaveTrend : Elliott Wave Trend
  Find the trend using TSMElliottWaveOsc
  Copyright 1996-1999, P J Kaufman. All rights reserved.

  inputs:	period = observation period for "trigger"
			trigger = a percentage price rally to begin trend
			length1 = part of Elliott Wave Oscillator
			length2 = part of Elliott Wave Oscillator
  Function returns a value of 0, +1, -1 to identify existing trend }

  inputs: period(50), trigger(.7), length1(5), length2(35);

  plot1(TSMElliottWaveTrend(period,trigger,length1,length2), "TSMEWT");
